package com.smart.six.javabean;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 基于java的外部配置
 *
 * @author junrui.wang
 * @create 2018/7/9
 */
@Component
public class MyDataSource {
    @Value("${jdbc.driverClassName}")
    private String driverClassName;

    @Value("${jdbc.url}")
    private String url;

    @Value("${jdbc.username}")
    private String jdbcUsername;

    @Value("${jdbc.password}")
    private String password;

    @Value("${username}")
    private String username;

    @Value("${userName}")
    private String userName;


}
